.home {
  @include flex;
  > .top {
    @include header();
  }
  > div {
    padding-top: 10px;
    overflow-y: scroll;
    flex: 1;
  }
  header {
    @include size(100%, px2rem(106px));
    p {
      display: flex;
      align-items: center;
      margin: 0 auto;
      font-size: px2rem(30px);
      @include size(90%, px2rem(90px));
      border: solid 1px #ccc;
      border-radius: px2rem(15px);
      span:nth-child(1) {
        margin: 0 px2rem(30px);
      }
      input {
        font-size: px2rem(30px);
        outline: none;
        border: none;
      }
    }
  }
  main {
    flex: 1;
    padding: 0 px2rem(20px);
    // 分类
    .tabNav {
      background: url("../assets/img/bgcolor.gif");
      background-size: 100% 100%;
      display: flex;
      flex-wrap: wrap;
      padding-bottom: 30px;
      li {
        width: 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: px2rem(24px);
        img {
          @include size(px2rem(100px), px2rem(70px));
          margin: px2rem(25px);
          object-fit: cover;
        }
      }
    }
    // 轮播图
    .banner {
      .rv-swiper {
        &__slide {
          .rv-swiper-item {
            color: #fff;
            font-size: 20px;
            height: 150px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          &:nth-child(odd) {
            .rv-swiper-item {
              background-color: #3f45ff;
            }
          }

          &:nth-child(even) {
            .rv-swiper-item {
              background-color: lighten(#3f45ff, 8%);
            }
          }
        }
      }
    }
    // 房
    .house {
      margin-top: px2rem(50px);
      > li {
        @include size(100%, px2rem(65px));
        display: flex;
        justify-content: space-between;
        h2 {
          font-size: px2rem(38px);
        }
        span {
          margin-top: px2rem(10px);
          font-size: px2rem(26px);
          color: rgb(95, 94, 94);
        }
      }
      ul {
        dl {
          @include size(100%, px2rem(160px));
          align-items: center;
          display: flex;
          height: px2rem(180px);
        }
        dt {
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: px2rem(10px);
          img {
            padding: px2rem(10px);
            @include size(px2rem(200px), px2rem(140px));
          }
        }
        dd {
          h3 {
            font-size: px2rem(30px);
          }
          p {
            font-size: px2rem(24px);
          }
        }
      }
      ol {
        border: 1px solid #ccc;
        li {
          height: px2rem(80px);
          padding: 0 px2rem(10px);
          display: flex;
          align-items: center;
          font-size: px2rem(28px);
          span {
            padding: px2rem(10px);
            &:nth-child(1) {
              background: linear-gradient(to left, pink, orangered);
              color: #fff;
            }
          }
        }
      }
      > div {
        display: flex;
        overflow-x: scroll;
        .card {
          margin-bottom: 20px;
          margin-right: 10px;
          flex-shrink: 0;
          @include size(px2rem(250px), px2rem(300px));
          border-radius: 16px;
          border: 1px solid #ccc;
          dl {
            display: flex;
            align-items: center;
            flex-direction: column;
            dt {
              margin: 5px;
            }
            dd {
              p {
                text-align: center;
                font-size: px2rem(18px);
                margin-top: px2rem(8px);
                &:nth-child(2) {
                  font-size: px2rem(16px);
                }
              }
              button {
                font-size: px2rem(18px);
                margin-top: 5px;
                border-radius: 20px;
                background: linear-gradient(
                  to right,
                  rgb(247, 133, 91),
                  orange,
                  rgb(224, 70, 14)
                );
                color: #fff;
              }
            }
          }
        }
      }
    }
  }
}

.city_mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: none;
  // display: flex;
  // flex-direction: column;
  // overflow: hidden;
  // transform: translateX(0);
  // transition: 1s;
  nav {
    width: 100%;
    height: px2rem(200px);
    display: flex;
    flex-direction: column;
    p {
      margin: 10px 0;
      font-size: px2rem(40px);
      padding: 0 px2rem(20px);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    div {
      font-size: px2rem(40px);
      display: flex;
      align-items: center;
      padding: 0 px2rem(20px);
      padding-bottom: 10px;
      border-bottom: 1px solid #ccc;
    }
  }
}
.city_mask1 {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  // display: flex;
  // flex-direction: column;
  // overflow: hidden;
  // transform: translateX(100%);
  // transition: 1s;
  display: block;
  nav {
    width: 100%;
    height: px2rem(200px);
    display: flex;
    flex-direction: column;
    p {
      margin: 10px 0;
      font-size: px2rem(40px);
      padding: 0 px2rem(20px);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    div {
      font-size: px2rem(40px);
      display: flex;
      align-items: center;
      padding: 0 px2rem(20px);
      padding-bottom: 10px;
      border-bottom: 1px solid #ccc;
    }
  }
}
